package net.maxwoods.nimble.spring.security;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.annotation.Order;
import org.springframework.web.WebApplicationInitializer;

import javax.servlet.FilterRegistration;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;

@Order(1)
public class FrameworkBootstrap implements WebApplicationInitializer {

    private static final Logger logger=LoggerFactory.getLogger(FrameworkBootstrap.class);

    @Override
    public void onStartup(ServletContext context) throws ServletException
    {
        logger.info("===== Web应用正在启动 =====");
        /*
        FilterRegistration.Dynamic registration=context.addFilter(CustomLoginFilter.class.getName(),new CustomLoginFilter());
        registration.addMappingForUrlPatterns(null,false,"/*");
        */
    }
}
